<?php
    $block = new Default_Model_Block();
?>
<div class="header-section">
    <div class="customised-tours">
        <h2>đặt phòng theo yêu cầu</h2>
        <div class="customised-description">
            <?php echo $block->getBlock('requirement_order', $this->lang) ?>
        </div>
    </div>

    <div class="customised-search">
        Advance Search
    </div>
</div>

<div class="type-travel">
    <div class="types">
        <p class="type-header">khách sạn</p>
        <div class="border-img">
            <img src="<?php echo $this->baseUrl('public/templates/default/images') ?>/type-2.jpg">
        </div>
        <span class="short-description-type">
            <?php echo $block->getBlock('hotel', $this->lang) ?>
        </span>
        <a class="more-info button button-hotel-special" href="<?php echo $this->baseUrl($this->lang . '/hotel') ?>">chi tiết</a>
    </div>

    <div class="types">
        <p class="type-header">nghỉ dưỡng</p>
        <div class="border-img">
            <img src="<?php echo $this->baseUrl('public/templates/default/images') ?>/type-1.jpg">
        </div>
        <span class="short-description-type">
            <?php echo $block->getBlock('resort', $this->lang) ?>
        </span>
        <a class="more-info button button-hotel-special" href="<?php echo $this->baseUrl($this->lang . '/resort') ?>">chi tiết</a>
    </div>

    <div class="types last-type">
        <p class="type-header">du thuyền</p>
        <div class="border-img">
            <img src="<?php echo $this->baseUrl('public/templates/default/images') ?>/type-3.jpg">
        </div>
        <span class="short-description-type">
            <?php echo $block->getBlock('boating', $this->lang) ?>
        </span>
        <a class="more-info button button-hotel-special" href="<?php echo $this->baseUrl($this->lang . '/boating') ?>">chi tiết</a>
    </div>
</div>

<div class="popular-tours">
    <h2>tour du lịch phổ biến</h2>

    <div class="popular-description">
        <?php echo $block->getBlock('most_popular_tour', $this->lang) ?>
    </div>

    <div class="list-popular-tours">
        <?php
            $tour = new Default_Model_Tour();
            $mostPopular = $tour->mostPopular($this->lang);
            if(count($mostPopular) > 0) :
                foreach($mostPopular as $value) :
        ?>
        <div class="home-popular-tours">
            <img class="image-popular-tours" src="<?php echo $this->baseUrl('public/files/tour/') . $value['image'] ?>">
            <p class="short-description-popular-tours">
                <?php echo $value['name'] ?>
            </p>
            <a class="more-info button" href="<?php echo $this->baseUrl($this->lang . '/tour/details?id=') . $value['id'] ?>">chi tiết</a>
        </div>
        <?php
                endforeach;
            endif;
        ?>
    </div>
</div>